package cn.iocoder.yudao.module.forward.controller.admin.scope.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
import java.util.*;
import org.springframework.format.annotation.DateTimeFormat;
import java.time.LocalDateTime;
import com.alibaba.excel.annotation.*;
import cn.iocoder.yudao.framework.excel.core.annotations.DictFormat;
import cn.iocoder.yudao.framework.excel.core.convert.DictConvert;

@Schema(description = "管理后台 - 授权范围 Response VO")
@Data
@ExcelIgnoreUnannotated
public class ScopeRespVO {

    @Schema(description = "序号", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("序号")
    private Integer id;

    @Schema(description = "名称")
    @ExcelProperty("名称")
    private String name;

    @Schema(description = "授权范围")
    @ExcelProperty("授权范围")
    private String scope;

    @Schema(description = "发布主题")
    @ExcelProperty("发布主题")
    private String topic;

    @Schema(description = "主题类型")
    @ExcelProperty(value = "主题类型", converter = DictConvert.class)
    @DictFormat("topic_type") // TODO 代码优化：建议设置到对应的 DictTypeConstants 枚举类中
    private String topicType;

    @Schema(description = "所属转发")
    @ExcelProperty("所属转发")
    private Integer brokerId;

    @Schema(description = "所属分组")
    @ExcelProperty("所属分组")
    private Integer groupId;

    @Schema(description = "是否启用")
    @ExcelProperty(value = "是否启用", converter = DictConvert.class)
    @DictFormat("select_enable") // TODO 代码优化：建议设置到对应的 DictTypeConstants 枚举类中
    private Boolean enable;

    @Schema(description = "创建时间", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("创建时间")
    private LocalDateTime createTime;

}